﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.DTO
{
    public class SalesOrderReturnDto
    {
        /// <summary>
        /// 销售退货单号
        /// </summary>
        public string OrderSn { get; set; }

        /// <summary>
        /// 公司编码
        /// </summary>
        public string PompanyCode { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string PompanyName { get; set; }

        /// <summary>
        /// 销售订单号
        /// </summary>
        public string SafeOrderSn { get; set; }

        /// <summary>
        /// 退货时间
        /// </summary>
        public DateTime ReturnDateTime { get; set; }

        /// <summary>
        /// 客户代码
        /// </summary>
        public string CustomerCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// 楼层
        /// </summary>
        public int Floor {  get; set; }


        public List<SalesOrderReturnOrderDetailDto> ChildList { get; set; }
    }

    public class SalesOrderReturnOrderDetailDto
    {
        /// <summary>
        /// 退货单行项目
        /// </summary>
        public int IineItem { get; set; }

        /// <summary>
        /// 销售订单号
        /// </summary>
        public string SafeOrderSn {  set; get; }

        /// <summary>
        /// 销售订单行项目
        /// </summary>
        public int SaleIineItem { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string TMaterialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string TMaterialName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string ModelSpec { get; set; }

        /// <summary>
        /// 退料数量
        /// </summary>
        public decimal Qty { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        public string UnitName { get; set; }

        /// <summary>
        /// 单位编码
        /// </summary>
        public string UnitCode { get; set; }

        /// <summary>
        /// 客户代码
        /// </summary>
        public string CustomerCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }
    }
}
